package com.project.dto.request.cmd;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class CmdChangePwd {

    @ApiModelProperty("id")
    @NotNull(message = "id不可为空")
    private Long id;
    
    @ApiModelProperty("原密码")
    @NotBlank(message = "原密码不可为空")
    @Size(min = 6,message = "原密码长度必须不少于6位")
    private String oldPassword;

    @ApiModelProperty("新密码")
    @NotBlank(message = "新密码不可为空")
    @Size(min = 6,message = "新密码长度必须不少于6位")
    private String newPassword;
}
